<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta name='viewport' content='width=device-width, initial-scale=1'>

<title>index.jsp</title>

<link rel="stylesheet" href="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.css"/>
<script src="http://code.jquery.com/jquery-1.8.3.min.js"></script>
<script src="http://code.jquery.com/mobile/1.3.2/jquery.mobile-1.3.2.min.js"></script>
<style type="text/css">
.ui-icon-myproject{
	background-image:url(../icon/myproject.png);
	background-repeat:no-repeat;
}
</style>
</head>

<body>

<%
String sessionID=(String)session.getAttribute("mid");
%>
	<div data-role='page' id='main'>
		<div data-role='header' data-position='fixed' data-theme='b'><h1>Index</h1></div>
		
		
		<div data-role='content'>
				<%if(sessionID==null) {%>
			<div data-role='controlgroup' data-type='horizontal'>
				<a href='./login.jsp' data-role='button' data-icon='myproject' data-theme='d' data-rel='dialog' data-transition='pop'>로그인</a>
			</div>

			<%}else{ %>
				<div data-role='controlgroup' data-type='horizontal'>
					<a href='./logout.jsp' data-role='button' data-icon='myproject' data-theme='d' data-rel='dialog' data-transition='pop'>[<%=sessionID %>]님 로그아웃</a>
				</div>	
		
			
				<div data-role='controlgroup' data-type='horizontal'>
					<a href='./button.jsp' data-role='button' data-inline='true' data-icon='myproject'>Button</a>
					<a href='./dialog.jsp' data-role='button' data-inline='true'>Dialog</a>
					<a href='./effect.jsp' data-role='button' data-inline='true'>Effect</a>
					<a href='./footer.jsp' data-role='button' data-inline='true'>Footer</a>
					<a href='./header.jsp' data-role='button' data-inline='true'>Header</a>
					<a href='./jqm_member_list.jsp' data-role='button' data-inline='true' data-ajax='false' data-icon='info' value='info'>회원정보</a>
				</div>
				
				<div data-role='controlgroup' data-type='horizontal'>
					<a href='./layout_collapsible.jsp' data-role='button' data-inline='true'>Collapsible</a>

				</div>
				
				
			
			<%} %>
			
			

		
		
		</div>
		<div data-role='footer'><h1>중앙HTA</h1></div>
	</div>
</body>
</html>